package cn.bby.jtk.base.exception;

import cn.bby.jtk.base.constant.CommonErrorCode;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * @author ben
 * @since 2025/4/15 23:08
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class NotSupposedException extends ServiceException {
    private static final long serialVersionUID = -8802538502627591189L;

    public NotSupposedException(String msg) {
        super(CommonErrorCode.NOT_SUPPORT, msg);
    }

    public NotSupposedException(String msg, Object ...args) {
        super(CommonErrorCode.NOT_SUPPORT, String.format(msg, args));
    }
}
